package com.ruoyi.volunteer_college.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.volunteer_college.mapper.TbVolunteerCollegeMapper;
import com.ruoyi.volunteer_college.domain.TbVolunteerCollege;
import com.ruoyi.volunteer_college.service.ITbVolunteerCollegeService;

/**
 * 志愿院校信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-02
 */
@Service
public class TbVolunteerCollegeServiceImpl implements ITbVolunteerCollegeService 
{
    @Autowired
    private TbVolunteerCollegeMapper tbVolunteerCollegeMapper;

    /**
     * 查询志愿院校信息
     * 
     * @param id 志愿院校信息主键
     * @return 志愿院校信息
     */
    @Override
    public TbVolunteerCollege selectTbVolunteerCollegeById(Long id)
    {
        return tbVolunteerCollegeMapper.selectTbVolunteerCollegeById(id);
    }

    /**
     * 查询志愿院校信息列表
     * 
     * @param tbVolunteerCollege 志愿院校信息
     * @return 志愿院校信息
     */
    @Override
    public List<TbVolunteerCollege> selectTbVolunteerCollegeList(TbVolunteerCollege tbVolunteerCollege)
    {
        return tbVolunteerCollegeMapper.selectTbVolunteerCollegeList(tbVolunteerCollege);
    }

    /**
     * 新增志愿院校信息
     * 
     * @param tbVolunteerCollege 志愿院校信息
     * @return 结果
     */
    @Override
    public int insertTbVolunteerCollege(TbVolunteerCollege tbVolunteerCollege)
    {
        return tbVolunteerCollegeMapper.insertTbVolunteerCollege(tbVolunteerCollege);
    }

    /**
     * 修改志愿院校信息
     * 
     * @param tbVolunteerCollege 志愿院校信息
     * @return 结果
     */
    @Override
    public int updateTbVolunteerCollege(TbVolunteerCollege tbVolunteerCollege)
    {
        return tbVolunteerCollegeMapper.updateTbVolunteerCollege(tbVolunteerCollege);
    }

    /**
     * 批量删除志愿院校信息
     * 
     * @param ids 需要删除的志愿院校信息主键
     * @return 结果
     */
    @Override
    public int deleteTbVolunteerCollegeByIds(Long[] ids)
    {
        return tbVolunteerCollegeMapper.deleteTbVolunteerCollegeByIds(ids);
    }

    /**
     * 删除志愿院校信息信息
     * 
     * @param id 志愿院校信息主键
     * @return 结果
     */
    @Override
    public int deleteTbVolunteerCollegeById(Long id)
    {
        return tbVolunteerCollegeMapper.deleteTbVolunteerCollegeById(id);
    }
}
